﻿clc,clear
close all
disp("examples of diag");

help diag

diag ([1, 2, 3], 0)
diag ([1, 2, 3], -1)
diag ([1, 2, 3], 1)